
#include "Hw.h"
#include "Drv_Init.h"

uint8 g_LocalIpmbAddress	= 0x72;
uint8 g_LocalLun			= 0x00;
uint8 g_SiteNumber			= 0x01;
uint8 g_HotSwapState		= 0x01;

uint8 g_RemoteIpmbAddress	= 0x20;
uint8 g_RemoteLun			= 0x00;
uint8 gTestSimultePortState		= 0x00;
uint8 g_Temperature[4];
uint8 g_ResetState			 = 0;
uint8 g_EkState			 = 0;

uint32 WDMOD = 0;

void Regester_ResetAll()
{
	g_LocalIpmbAddress = 0x72;
	g_SiteNumber = 0x1;

	g_HotSwapState = 1;

	g_ResetState = POWER_ON_RESET;
}

void Uint32Set(uint32* pAddr, uint32 value, uint32 mask)
{
	int i = 0;
	for(i = 0; i < 32; i++)
	{
		if((mask >> i) & 0x1)
		{
			if((value >> i) & 0x1)
			{
				*pAddr |= (1 << i);
			}
			else
			{
				*pAddr &= ~(1 << i);
			}
		}
	}
}

void Regester_WatchDogReset()
{
	
}